using System;
using System.Globalization;
using jSLApp.Client.MainService;
using jSLApp.Client.Workflow;
using jSLCore.Client.Presentation.jBinding;

namespace jSLApp.Client.Converters
{
    public class MusicToTrackLengthConverter : jChainConverter
    {
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var music = value as Music;
            if (music != null) return music.MusicToTrackLength();
            return null;
        }

        public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}